local t = Def.ActorFrame {};

t[#t+1] = Def.ActorFrame {
		Def.Quad { -- BG
			InitCommand=function(self) self:Center():FullScreen() end;
			OnCommand=function(self) self:diffuse(color("#000000")) end;
		};
		LoadActor("chip over") .. {
			InitCommand=function(self) self:Center():FullScreen() end;
			OnCommand=function(self) self:sleep(0.1):queuecommand("Play") end;
			PlayCommand=function(self) self:play() end;
		};
		LoadActor(THEME:GetPathS("", "switch")) .. {
			OnCommand=function(self) self:sleep(3.7):queuecommand("Play") end;
			PlayCommand=function(self) self:play() end;
		};
		LoadActor(THEME:GetPathS("", "_gameover")) .. {
			OnCommand=function(self) self:queuecommand("Play") end;
			PlayCommand=function(self) self:play() end;
		};
		LoadActor("_three")..{
			InitCommand=function(self) self:xy(_screen.cx,_screen.cy+200):addy(0):zoom(0.6):diffusealpha(0) end;
			OnCommand=function(self) self:sleep(0.5):linear(0.5):diffusealpha(1):sleep(2):linear(0.5):diffusealpha(0) end;
		};
		LoadActor("_chipcircle")..{
			InitCommand=function(self) self:Center():addy(0):zoom(1.2):diffusealpha(1) end;
			OnCommand=function(self) self:decelerate(3):addrotationz(1440) end;
		};
		Def.Quad { -- fade out
			InitCommand=function(self) self:diffuse(color("#000000")):diffusealpha(0):FullScreen() end;
			OnCommand=function(self) self:sleep(3.8):diffusealpha(1) end;
		};
		Def.Quad { -- fade out
			InitCommand=function(self) self:diffuse(color("#FFFFFF")):diffusealpha(0):FullScreen() end;
			OnCommand=function(self) self:sleep(3.7):diffusealpha(1):zoomy(0):linear(0.1):zoomy(SCREEN_HEIGHT):linear(0.1):zoomy(0) end;
		};
};

t[#t+1] = Def.ActorFrame {
	InitCommand=function(self) self:xy(_screen.cx,_screen.cy):zoom(1):zoomy(0):diffusealpha(1) end;
	OnCommand=function(self) self:sleep(0.2):linear(0.15):zoomy(1):sleep(3):linear(0.15):zoomx(1.3):zoomy(0) end;
	LoadActor("_headerframe")..{};
	LoadFont("_coaster") .. {
		Name="HeaderText";
		Text="GAME OVER";
		InitCommand=function(self) self:diffusealpha(0):maxwidth(300):zoom(1.2) end;
		OnCommand=function(self) self:sleep(0.5):diffuse(color("#FFFFFF")):queuecommand("FlickerOn") end;
		FlickerOnCommand=function(self) self:diffusealpha(1):sleep(0.03):diffusealpha(0):sleep(0.03):diffusealpha(1):sleep(0.03):diffusealpha(0):sleep(0.03):diffusealpha(1):sleep(2.5):queuecommand("FlickerOff") end;
		FlickerOffCommand=function(self) self:diffusealpha(0):sleep(0.03):diffusealpha(1):sleep(0.03):diffusealpha(0):sleep(0.03):diffusealpha(1):sleep(0.03):diffusealpha(0) end;
		UpdateScreenHeaderMessageCommand=function(self,param)self:settext(param.Header) end;
	};
};
return t